home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / gift40b7.arc / PROUT1.BAT < prev    next >
DOS Batch File  |  1992-01-04  |  1KB  |  44 lines

  1. @echo off
  2. rem -- process a single upload file - for ProDOOR 3.4
  3. rem -- %1-logfile, %2-testfile, %3-comport
  4.  
  5. rem -- determing file type and branch to proper test case
  6. rem -- using 4DOS commands
  7. if %@ext[%2] == gif goto gif
  8. if %@ext[%2] == zip goto zip
  9. if %@ext[%2] == exe goto zip
  10. if %@ext[%2] == lzh goto zip
  11. if %@ext[%2] == arj goto zip
  12. goto end
  13.  
  14. rem -- Check GIF, delete if invalid or incomplete GIF file and
  15. rem -- add resolution to description
  16. :gif
  17. giftest %2 /P:%3/E/L/B:1/D/M:321x201x16/F:\prolon%pcbnode%\$door.nam
  18. goto end
  19.  
  20. rem -- test ZIP files
  21. rem -- ZipLab Plus tests ZIP, ARJ, and LZH files
  22. :zip
  23. SET PCBDOOR=PRODOOR
  24. ptest %2 ptest%pcbnode%.cfg
  25. SET PCBDOOR=
  26.  
  27. rem -- Check for AV in the file
  28. proecho %3 ~~ChkAv 2.2 - Courtesy of The Bard's Lair (718)381-3651~
  29. proecho %3 ~Checking for -AV~
  30. chkav %2
  31. if errorlevel == 2 av
  32. goto end
  33.  
  34. rem -- Found AV
  35. :av
  36. proecho %3 ~~Found -AV in file, sending mail to SysOp to revue file... ~
  37. echo User has uploaded the file: %2 > mail
  38. echo which contains an -AV in it, please revue file. >> mail
  39. txt2msg f:\bbs\main\msgs -tSYSOP -fPROUTEST -sAV_File mail
  40. del mail
  41. goto end
  42.  
  43. :end
  44.